<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<%@ include file="../../common/jsp/sheetHeader.jsp" %>
<script>
	$(document).ready(function() {
		//sheet 초기화  
		var cfg = {
		    Chart : {
				Animation : true,
		        PlotBackgroundColor : "#FAFAFA",
				PlotBorderColor:"#A9AEB1",
		        PlotBorderWidth:0.5,
				BackgroundColor:{
					LinearGradient : [0,0,100,500],
					Stops : [
						[0, "#D7E1F3"],
						[1, "#FFFFFF"]
					]
				},
				BorderColor : "#84888B",
				
				Polar : true,
				zoomType : "xy",
		        Style : {
		            FontSize : "20px"
		        }		
		    },
			Credits : {
				Enabled:false
			},
			
			Colors : ["#7AAAEE","#F06F3E","#AAEE6A","#F0E150","#5DA0A9","#75738B"],
			
		    Legend : {
		    	Layout : "horizontal",			// Legend 모양 설정
				Align : "center",				// Legend 가로 정렬 설정
				VerticalAlign : "bottom"		// Legend 세로 정렬 설정
		    },
		    
		    XAxis : {
				LineWidth: 0,
				
		    },
			
		    YAxis : {
		    	TickInterval : 2
		    }
		}
		
		myChart.SetOptions(cfg);
		
		myChart.DoSearch("../data/chartdata_polar.json");
		myChart.Draw();
	});
</script>
<title>Polar Chart 예제</title>
</head>
<body>
<div id="main">
	<%@ include file="../../common/jsp/chartNavi.jsp" %>	
	<div id="title">Polar Chart 예제</div>
	<div id="desc">
		Polar 속성을 활성화 시킨후, 조회된 데이터를 차트에 표현한다.
	</div>

	<div id="functionArea">
		chart: {<br>
	    &nbsp;&nbsp;&nbsp;&nbsp;polar : true,<br>
	    }<br>
	    <br>
		각각 타입을 달리해서 적용한다.<br>
	    <br>
	    {<br>
      	&nbsp;&nbsp;&nbsp;&nbsp;SeriesType: 'column',<br>
      	},<br>
      	{<br>
      	&nbsp;&nbsp;&nbsp;&nbsp;SeriesType: 'line',<br>
      	},<br>
      	{<br>
      	&nbsp;&nbsp;&nbsp;&nbsp;SeriesType: 'area',<br>
      	}
	</div>
	
	<div id="viewArea">
		<script type="text/javascript">
			createIBChart("myChart", "1000px", "300px");
		</script>
	</div>
</div>
</body>
</html>